package dialog

import (
	"context"
	"github.com/wailsapp/wails/v2/pkg/runtime"
)

const TypeDir = "dir"

func OpenDirectoryDialog(ctx context.Context, dialogOptions runtime.OpenDialogOptions) (string, error) {
	return runtime.OpenDirectoryDialog(ctx, dialogOptions)
}

const TypeFile = "file"

func OpenFileDialog(ctx context.Context, dialogOptions runtime.OpenDialogOptions) (string, error) {
	return runtime.OpenFileDialog(ctx, dialogOptions)
}

const TypeFiles = "files"

func OpenMultipleFilesDialog(ctx context.Context, dialogOptions runtime.OpenDialogOptions) ([]string, error) {
	return runtime.OpenMultipleFilesDialog(ctx, dialogOptions)
}

const TypeSave = "save"

func SaveFileDialog(ctx context.Context, dialogOptions runtime.SaveDialogOptions) (string, error) {
	return runtime.SaveFileDialog(ctx, dialogOptions)
}
